<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\Route;

return [
    '__pattern__' => [
        'name' => '\w+',
    ],
    '[hello]'     => [
        ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
        ':name' => ['index/hello', ['method' => 'post']],
    ],
    //课程
    'course/[:nav_id]/[:type_id]' => 'index/index/course',
    'learnings/:id' => 'index/course/index',
    'learning/pages/:id/:fetch' => 'index/course/pages',
    'learning/lists' => 'index/course/lists',
    'learning/queslists' => 'index/course/questionlists',
    'search' => 'index/course/search',


    //个人中心
    'courses' => 'index/profile/course',
    'progress' => 'index/profile/progress',
    'order' => 'index/profile/order',
    'mine' => 'index/profile/mine',
    'profile/logs' => 'index/profile/logs',
    'profile/update' => 'index/profile/update',


    //关于我们
    'about' => 'index/other/about',
    'return' => 'index/other/return',
    'teacher/zhangyupeng' => 'index/other/zhangyupeng',
    'teacher/yangshujuan' => 'index/other/yangshujuan',
    'teacher/shiyaping' => 'index/other/shiyaping',
    'editor/uploads' => 'index/other/uploads',

    //登录
    'login' => 'index/login/login',
    'register' => 'index/login/register',
    'forget' => 'index/login/forget',
    'logout' => 'index/login/logout',
    'third/wechat' => 'index/other/wechat',
    'third/complete' => 'index/login/complete',

    //支付
    'goods/[:nav_id]/[:pack]' => 'index/order/index',
    'orders/create' => 'index/order/create',
    'orders/shows/:id' => 'index/order/shows',
    'orders/getorder' => 'index/order/getorder',
    'orders/alireturn' => 'index/order/alireturn',
    'orders/alinotify' => 'index/order/alinotify',
    'orders/wxreturn' => 'index/order/wxreturn',
];
